import logging
from db.session import SessionLocal

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

from models.user_model import User
def init() -> None:
    db = SessionLocal()
    user = User()
    user.user_type='user'
    user.role='user'
    user.email='lian@163.com'
    db.add(user)
    db.commit()
    db.refresh()
    # init_db(db)


def main() -> None:
    logger.info("Creating initial data")
    init()
    logger.info("Initial data created")

